home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / progtool / c / gcc / gempp19.zoo / gem++19 / src / gemimgo.cc < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-28  |  930 b   |  26 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. //  This file is Copyright 1992,1993 by Warwick W. Allison.
  4. //  This file is part of the gem++ library.
  5. //  You are free to copy and modify these sources, provided you acknowledge
  6. //  the origin by retaining this notice, and adhere to the conditions
  7. //  described in the file COPYING.LIB.
  8. //
  9. /////////////////////////////////////////////////////////////////////////////
  10.  
  11. #include "gemimgo.h"
  12. #include "img.h"
  13.  
  14. GEMimageobject::GEMimageobject(class GEMform& f, int RSCindex, IMG& data) :
  15.     GEMobject(f,RSCindex)
  16. {
  17.     SetImageBitmap((char*)data.Location(),data.Width(),data.Height(),FALSE);
  18. }
  19.  
  20. GEMimageobject::GEMimageobject(class GEMform& f, int RSCindex, IMG& data, IMG& mask) :
  21.     GEMobject(f,RSCindex)
  22. {
  23.     SetImageBitmap((char*)data.Location(),data.Width(),data.Height(),FALSE);
  24.     SetImageBitmap((char*)mask.Location(),mask.Width(),mask.Height(),TRUE);
  25. }
  26.